package Interface.Insumos.Convenio;

import java.sql.SQLException;
import sft.BancodeDados.Dao;
import sft.Logica.Insumos;

public class ConvenioDao extends Dao{
    
    public ConvenioDao() throws SQLException {
    }
    
    public void Adicionar(Insumos p) throws SQLException{
        p.setSql("insert into sft_conv (conv_nm_nmconv) values (?)");
        Operacao("adicionar", p);
    }
    public void Editar(Insumos p) throws SQLException{
        p.setSql("update sft_conv set conv_nm_nmconv=? where conv_id_idconv like ?");
        Operacao("editar", p);
    }
    public void Deletar(Insumos p) throws SQLException{
        p.setSql("DELETE FROM sft_conv WHERE conv_id_idconv like ?");
        Operacao("deletar", p);
    }
}
